package com.huiminpay.merchant.convert;


import com.huiminpay.merchant.dto.MerchantDTO;
import com.huiminpay.merchant.entity.Merchant;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MerchantCovert {
    MerchantCovert INSTANCE = Mappers.getMapper(MerchantCovert.class);
//    @Mappings({
//            @Mapping(source = "id", target = "userId"),
//            @Mapping(source = "name", target = "userName")
//    })
    MerchantDTO entity2Dto(Merchant merchant);
    Merchant dto2Entity(MerchantDTO dto);


}